package com.qst.web;

import com.qst.po.Clazz;
import com.qst.po.Lesson;
import com.qst.service.IClazzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
@Controller
public class ClazzController {
    @Autowired
    private IClazzService clazzService;
    @RequestMapping("getallclazzs")
    @ResponseBody
    public List<Clazz> getallclazzs(){
        List<Clazz> clazzs =clazzService.getallclazzs();
        return clazzs;
    }
}
